﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Orchard;
using Orchard.UI.Resources;

namespace Bootstrap
{
    public class ResourceManifest : IResourceManifestProvider 
    {
        private readonly IOrchardServices _services;

        public ResourceManifest(IOrchardServices services) {
            _services = services;
        }

        public void BuildManifests(ResourceManifestBuilder builder) {
            var manifest = builder.Add();
            manifest.DefineStyle("bootstrap").SetUrl("bootstrap.css", "bootstrap.debug.css");
            manifest.DefineScript("site").SetUrl("site.js");
            manifest.DefineScript("bootstrap.alert").SetUrl("bootstrap-alert.js");
            manifest.DefineScript("bootstrap.button").SetUrl("bootstrap-button.js");
            manifest.DefineScript("bootstrap.carousel").SetUrl("bootstrap-carousel.js");
            manifest.DefineScript("bootstrap.collapse").SetUrl("bootstrap-collapse.js");
            manifest.DefineScript("bootstrap.dropdown").SetUrl("bootstrap-dropdown.js");
            manifest.DefineScript("bootstrap.modal").SetUrl("bootstrap-modal.js");
            manifest.DefineScript("bootstrap.popover").SetUrl("bootstrap-popover.js");
            manifest.DefineScript("bootstrap.scrollspy").SetUrl("bootstrap-scrollspy.js");
            manifest.DefineScript("bootstrap.tab").SetUrl("bootstrap-tab.js");
            manifest.DefineScript("bootstrap.tooltip").SetUrl("bootstrap-tooltip.js");
            manifest.DefineScript("bootstrap.transition").SetUrl("bootstrap-transition.js");
            manifest.DefineScript("bootstrap.typeahead").SetUrl("bootstrap-typeahead.js");
        }
    }
}
